package com.thinkgem.jeesite.common.frame.rpc.bean;


import com.alibaba.fastjson.JSONObject;

import java.util.Map;

/**
 * Created by liufeng on 2016/6/6.
 */
public class RPCInData extends BaseRPCData{


    public RPCHeader getRpcHeader() {
        return rpcHeader;
    }

    public JSONObject getData() {
        return data;
    }

    public RPCInData(RPCInDataBuilder builder){

        super.data = builder.data;
        super.rpcHeader = builder.rpcHeader;

    }

    public RPCInData() {
    }

    public static class RPCInDataBuilder{

        private RPCHeader rpcHeader;
        private JSONObject data;

        public RPCInDataBuilder addRPCHeader(RPCHeader rpcHeader){
            this.rpcHeader = rpcHeader;
            return this;
        }

        public RPCInDataBuilder addData(JSONObject data){
            this.data = data;
            return this;
        }

        public RPCInData builder() {
            return new RPCInData(this);
        }
    }

}
